package com.lenovo.testreport.gray.web.languageTest.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.lenovo.testreport.gray.web.languageTest.model.*;

import java.util.List;

/**
 * @author CJF
 * @date 2018/12
 * <p>
 * MyBatis逆向工程自动生成，@Param("tablename")为传入的表名手动添加
 */
//@Mapper
public interface GrayWebLanguageEnglishPropertiesReportMapper {
    long countByExample(@Param("tablename") String tablename, GrayWebLanguageEnglishPropertiesReportExample example);

    int deleteByExample(@Param("tablename") String tablename, GrayWebLanguageEnglishPropertiesReportExample example);

    int deleteByPrimaryKey(@Param("tablename") String tablename, Integer rid);

    int insert(@Param("tablename") String tablename, GrayWebLanguageEnglishPropertiesReport record);

    int insertSelective(@Param("tablename") String tablename, GrayWebLanguageEnglishPropertiesReport record);

    List<GrayWebLanguageEnglishPropertiesReport> selectByExample(@Param("tablename") String tablename, GrayWebLanguageEnglishPropertiesReportExample example);

    GrayWebLanguageEnglishPropertiesReport selectByPrimaryKey(@Param("tablename") String tablename, Integer rid);

    int updateByExampleSelective(@Param("tablename") String tablename, @Param("record") GrayWebLanguageEnglishPropertiesReport record, @Param("example") GrayWebLanguageEnglishPropertiesReportExample example);

    int updateByExample(@Param("tablename") String tablename, @Param("record") GrayWebLanguageEnglishPropertiesReport record, @Param("example") GrayWebLanguageEnglishPropertiesReportExample example);

    int updateByPrimaryKeySelective(@Param("tablename") String tablename, GrayWebLanguageEnglishPropertiesReport record);

    int updateByPrimaryKey(@Param("tablename") String tablename, GrayWebLanguageEnglishPropertiesReport record);

    List<GrayWebLanguageEnglishPropertiesReport> selectAllReport(@Param("tablename") String tablename);

    List<GrayWebLanguageEnglishPropertiesReport> selectByType(@Param("tablename") String tablename, String type);

    List<GrayWebLanguageEnglishPropertiesReport> selectAllReportByTime(@Param("tablename") String tablename, String start, String end, String version);

    List<String> selectAllVersion(@Param("tablename") String tablename);
}